(function(){
	var myChart = echarts.init(document.getElementById('lineChart'));
    var option = {
	    tooltip : {
	        trigger: 'axis'
	    },
	    legend: {
	        data:['升降机器','塔吊','电动吊篮']
	    },
	    toolbox: {
//	        show : true,
	        feature : {
	            mark : {show: true},
	            dataView : {show: true, readOnly: false},
	            magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
	            restore : {show: true},
	            saveAsImage : {show: true}
	        }
	    },
	    calculable : true,
	    xAxis : [
	        {
	            type : 'category',
	            boundaryGap : false,
	            data : ['2017-09-01','2017-09-02','2017-09-03','2017-09-04','2017-09-05','2017-09-06','2017-09-07']
	        }
	    ],
	    yAxis : [
	        {
	            type : 'value'
	        }
	    ],
	    series : [
	        {
	            name:'升降机器',
	            type:'line',
	            stack: '总量',
	            data:[1, 3, 1, 4, 9, 2, 8]
	        },
	        {
	            name:'塔吊',
	            type:'line',
	            stack: '总量',
	            data:[2, 8, 9, 4, 2, 3, 1]
	        },
	        {
	            name:'电动吊篮',
	            type:'line',
	            stack: '总量',
	            data:[5, 2, 1, 1, 9, 3, 4]
	        }	        
	    ]
	};
	                    
    myChart.setOption(option);
})();
